﻿using Model.System;
using SqlSugar;

namespace Repository
{
    public class UserRepository : IUserRepository
    {
        private readonly ISqlSugarClient _sqlSugarClient;

        public UserRepository(ISqlSugarClient sqlSugarClient) {
            _sqlSugarClient= sqlSugarClient;
        }
        public async Task<List<UserModel>> GetAllUser()
        {
            return await _sqlSugarClient.Queryable<UserModel>().ToListAsync();
        }
    }
}
